#ifndef BUTTONGROUP_H
#define BUTTONGROUP_H

#include <QWidget>

namespace Ui {
class ButtonGroup;
}

class ButtonGroup : public QWidget
{
    Q_OBJECT

public:
    explicit ButtonGroup(QWidget *parent = nullptr);
    ~ButtonGroup();

    enum Panel
    {
        Start,
        PlayCard,
        PassOrPlay,
        CallLord,
        Empty,
    };

    //初始化按钮组
    void Init_Buttons();

    //处理page页切换
    void Select_Panel(const Panel& type);

signals:
    //开始游戏
    void Start_Game();
    //出牌
    void Play_Hand();
    //不出牌
    void Pass();
    //抢地主
    void Bet_Ponit(int bet);

private:
    Ui::ButtonGroup *ui;
};

#endif // BUTTONGROUP_H
